package com.neu.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.neu.domain.CaseHistory;
import com.neu.service.CaseHistoryService;

@Controller
@RequestMapping("/caseHistory")
public class CaseHistoryController {
	
	@Resource(name="caseHistoryService")
	private CaseHistoryService caseHistoryService;
	
	@RequestMapping("/addCase")
	public String addCase(Integer personid,CaseHistory caseHistory) {
		caseHistoryService.addCaseHistory(caseHistory, personid);
		//返回看诊患者页面
		return "forward:/home/toPerson";
		
	}

}
